.textbook-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  //background-color: #f5f5f5;
}

.page-header {
  padding: 15px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.page-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0 15px;
}

/* 主要内容区域 */
.main-content {
  padding: 0 20px 80px;
  margin-top: -16px;
}

.feature-card {
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid #D4E9FC;
  // padding: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card:active {
  transform: scale(0.95);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: #D4E9FC;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1EB7D8;
  font-size: 24px;
  margin-bottom: 20px;
}
.box {
    position: relative;
    // width: 300px;
    // height: 200px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}
.basic-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    border-bottom-left-radius: 5px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #374151;
  margin: 0 0 8px 0;
}

.feature-card p {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

.card-arrow {
  width: 48px;
  height: 48px;
  background: rgba(30, 183, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1EB7D8;
  font-size: 20px;
  position: absolute;
  bottom: 24px;
  right: 24px;
}

/* 最近在学样式 */
.recent-courses {
  background-color: #fff;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 260px;
  overflow: hidden;
}

.course-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  height: 186px;
  font-size: 24px;
}

.course-item:last-child {
  border-bottom: none;
}

.course-checkbox {
  --icon-size: 20px;
  --font-size: 16px;
  margin-right: 12px;
}

.course-title {
  font-size: 15px;
  color: #333;
  flex: 1;
}

.material-tag {
  font-size: 12px;
  padding: 3px 8px;
  margin-left: 8px;
}

/* 课程列表样式 */
.all-courses-section {
  //margin-top: 10px;
}

.course-list {
  --border-inner: none;
  --border-bottom: none;
  --border-top: none;
  border-radius: 8px;
  overflow: hidden;
}

.course-list-item {
  margin-top: 10px;
  --padding-left: 12px;
  --padding-right: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.course-list-item:last-child {
  border-bottom: none;
}

.list-checkbox {
  --icon-size: 20px;
  --font-size: 16px;
}

.list-item-content {
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 15px;
  color: #333;
}

.last-seen {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 底部导航样式 */
.bottom-tab-bar {
  background-color: #fff;
  border-top: 1px solid #eee;
  height: 50px;
}

.media-container {
  display: flex;
  /* 启用 Flex 布局 */
  align-items: flex-start;
  /* 顶部对齐 */
  gap: 20px;
  /* 图片和文字的间距 */
  max-width: 800px;
  /* 容器最大宽度 */
  margin: 0 auto;
  /* 居中显示 */
  //padding: 5px;
}

.media-img {
  width: 100%;
  /* 固定图片宽度 */
  //height: 160px;          /* 高度自适应 */
  //object-fit: cover;     /* 保持图片比例 */
  border-radius: 4px;
  /* 可选圆角 */
}


/* 布局核心样式 */
.text-button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: white;
  border-radius: 0 0 25px 25px;
  //margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-button-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.text-content {
  flex: 1;
}

.text-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.button-group {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1db7d8;
  color: white;
}

.btn-primary {
  background: #1db7d8;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.grid-div {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
}

.grid-div-hover {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  border: 2px solid #3498db;
  transform: translateY(-2px);
}

// 单词消消乐按钮动画
@keyframes gamePulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.4); 
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.6); 
  }
}

.gameButton {
  &:hover {
    .gameIcon {
      transform: rotate(10deg) scale(1.1) !important;
    }
  }
  
  &:active {
    transform: scale(0.95);
  }
}